/*
 * @Author: 岸舟
 * @Date: 2020-09-19 10:58:33
 * @LastEditors: 岸舟
 * @LastEditTime: 2020-09-22 16:09:22
 * @Description: 
 */
import axios from '../../axios'; //封装好的axios

const insureProductApi = {
    getItems: function(val) {
        return axios({
            url: "/insureProduct/getItems",
            method: "post",
            data: val,
        })
    },
    addItem: function(val) {
        return axios({
            url: "/insureProduct/addItem",
            method: "post",
            data: val
        })
    },
    delItem: function(val) {
        return axios({
            url: "/insureProduct/delItem",
            method: "post",
            data: { _id: val }
        })
    },
    getItem: function(val) {
        return axios({
            url: "/insureProduct/getItem",
            method: "post",
            data: { _id: val }
        })
    },
    modItem: function(val) {
        return axios({
            url: "/insureProduct/modItem",
            method: "post",
            data: val
        })
    },
    getSorts: function() {
        return axios({
            url: "/insureSort/getSorts",
            method: "get"
        })
    },
}
export default insureProductApi;